cmake_minimum_required(VERSION 2.8)
#set project name
project(TYEarthGodEye)

#find qt
find_path(QT_ROOT PATHS "${QT_ROOT}" "$ENV{QT_ROOT}")

if(EXISTS ${QT_ROOT})
   find_package(Qt5 COMPONENTS Widgets OpenGL Xml REQUIRED)
endif()

set(PROJECT_INCLUDE ${PROJECT_SOURCE_DIR})


# child project
add_subdirectory( TYEarth)

#project dependency


# Default debug suffix for libraries
# Set the build postfix extension according to what configuration is being built.
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "add a postfix, usually _d on windows")
set(CMAKE_RELEASE_POSTFIX "" CACHE STRING "add a postfix, usually empty on windows")
if (CMAKE_BUILD_TYPE MATCHES "Release")
    SET(CMAKE_BUILD_POSTFIX "${CMAKE_RELEASE_POSTFIX}")
elseif(CMAKE_BUILD_TYPE MATCHES "Debug")
    SET(CMAKE_BUILD_POSTFIX "${CMAKE_DEBUG_POSTFIX}")
else()
    SET(CMAKE_BUILD_POSTFIX "")
endif()

